package flc.ast.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.blankj.utilcode.util.TimeUtils;
import com.bumptech.glide.Glide;

import java.text.SimpleDateFormat;

import flc.ast.BaseAc;
import flc.ast.R;
import flc.ast.databinding.ActivityWallpaperPreviewBinding;

public class WallpaperPreviewActivity extends BaseAc<ActivityWallpaperPreviewBinding> {


    @Override
    protected int onCreate() {
        return R.layout.activity_wallpaper_preview;
    }

    @Override
    protected void initView() {
        Glide.with(mContext).load(WallpaperDetailActivity.wallpaperBean.getUrl()).into(mDataBinding.ivWallpaperImg);
    }

    @Override
    protected void initData() {
        String date = TimeUtils.getNowString(new SimpleDateFormat("MM月dd日 EE"));
        String time = TimeUtils.getNowString(new SimpleDateFormat("HH:mm"));
        mDataBinding.tvDate.setText(date);
        mDataBinding.tvTime.setText(time);
    }
}